﻿

namespace DBA.Data.ADO
{
    /// <summary>
    /// 访问Access和Excel的help
    /// </summary>
    class OleDbDAL : DataAccessLibrary
    {
        /// <summary>
        /// 子类的构造函数，调用父类的构造函数
        /// </summary>
        public OleDbDAL()
        {
        }

        /// <summary>
        /// 子类的构造函数，调用父类的构造函数
        /// </summary>
        /// <param name="connectionString">连接字符串</param>
        /// <param name="providerName">数据库驱动的名称。System.Data.SqlClient、System.Data.OleDb 、System.Data.Odbc、System.Data.OracleClient等</param>
        public OleDbDAL(string connectionString, string providerName)
            : base(connectionString, providerName)
        {
        }

        /// <summary>
        /// 设置存储过程的参数名称的前缀。OleDb的返回“?”
        /// </summary>
        /// <returns></returns>
        public override string ParameterPrefix()
        {
            return "@";
        }

    }
}
